<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Dashboard</title>
</head>
<body>

<h2>Welcome, <span th:text="${username}"></span>!</h2>

<h3>Your Books:</h3>
<table border="1">
    <thead>
    <tr>
        <th>Title</th>
        <th>Price</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="book : ${books}">
        <td th:text="${book.title}"></td>
        <td th:text="${book.price}"></td>
    </tr>
    <tr>
        <td>操作系统</td>
        <td>34</td>
    </tr>
    <tr>
        <td>javaee</td>
        <td>23</td>
    </tr>
    </tbody>
</table>

</body>
</html>
